package com.gdssoft.framework.dao.system;

/*
 *  捷达世软件(深圳)有限公司
 *  Copyright (C) 2008-2010 ShenZhen JieDaShi Software Limited Company.
 */
import java.util.List;

import com.gdssoft.core.dao.BaseDao;
import com.gdssoft.core.web.paging.PagingBean;
import com.gdssoft.framework.model.system.AppUser;

public interface AppUserDao extends BaseDao<AppUser> {
	public AppUser findByUserName(String username);
	
	public List<AppUser> findByDepartment(String path, PagingBean pb);

	public List<AppUser> findByRoleId(Long roleId, PagingBean pb);
	
	public List<AppUser> findByFullname(String fullname, PagingBean pb);
	
	public List<AppUser> findUnAgents(final Long userId, String fullname, PagingBean pb);

	public List<AppUser> findByRoleCode(String roleCode);

	//public List<AppUser> getUserByDepAndRole(Long roleId,Long depId);
	
}
